export const geoMapOptions = {
    toolbox: {
        show: true,
        feature: {
            myTool1: {
                show: true,
                title: "返回",
                icon: "path://M512 64L64 512l448 448 192-192L448 512l256-256z",
                onclick: function () {
                    // if (adcodeStack.length > 1) {
                    //     adcodeStack.pop();
                    //     mapNameStack.pop();
                    //     loadMap(
                    //         adcodeStack[adcodeStack.length - 1],
                    //         mapNameStack[mapNameStack.length - 1]
                    //     );
                    // }
                    alert(11)
                },
            },
        }
    },
    tooltip: {
        trigger: 'item',
        triggerOn: 'click',
        formatter: (params) => {
            console.log(params.name);

        }
    },
    geo: {
        map: 'china',
        roam: false,
        emphasis: {
            label: {
                show: false,
            },
        },
    },
    visualMap: {
        show: false,
        min: 0,
        max: 100,
        realtime: false,
        calculable: false,
        inRange: {
            color: ['#d2e0f5', '#71A9FF'],
        },
    },
    series: [
        {
            geoIndex: 0,
            name: '地域分布',
            type: 'map',
            coordinateSystem: 'geo',
            map: 'china',
            data: [
                { name: '北京', value: 100 },
                { name: '上海', value: 100 },
                { name: '广东', value: 100 },
                { name: '浙江', value: 90 },
                { name: '江西', value: 80 },
                { name: '山东', value: 70 },
                { name: '广西', value: 60 },
                { name: '河南', value: 50 },
                { name: '河南', value: 40 },
                { name: '青海', value: 70 },
                { name: '河南', value: 30 },
                { name: '黑龙江', value: 20 },
                { name: '新疆', value: 20 },
                { name: '云南', value: 20 },
                { name: '甘肃', value: 20 },
            ],
        },
    ],
}

export const geoMapOptions2 = {
    toolbox: {
        show: true,
        feature: {
            myTool1: {
                show: true,
                title: "返回",
                icon: "path://M512 64L64 512l448 448 192-192L448 512l256-256z",
                onclick: function () {
                    // if (adcodeStack.length > 1) {
                    //     adcodeStack.pop();
                    //     mapNameStack.pop();
                    //     loadMap(
                    //         adcodeStack[adcodeStack.length - 1],
                    //         mapNameStack[mapNameStack.length - 1]
                    //     );
                    // }
                    alert(11)
                },
            },
        }
    },
    tooltip: {
        trigger: 'item',
        triggerOn: 'click',
        formatter: (params) => {
            console.log(params.name);

        }
    },
    geo: {
        map: 'beijing',
        roam: false,
        emphasis: {
            label: {
                show: false,
            },
        },
    },
    visualMap: {
        show: false,
        min: 0,
        max: 100,
        realtime: false,
        calculable: false,
        inRange: {
            color: ['#d2e0f5', '#71A9FF'],
        },
    },
    series: [
        {
            geoIndex: 0,
            name: '地域分布',
            type: 'map',
            coordinateSystem: 'geo',
            map: 'beijing',
            label: {
                show: true
            },
            data: [
                { name: '东城区', value: 100 },
                // { name: '上海', value: 100 },
                // { name: '广东', value: 100 },
                // { name: '浙江', value: 90 },
                // { name: '江西', value: 80 },
                // { name: '山东', value: 70 },
                // { name: '广西', value: 60 },
                // { name: '河南', value: 50 },
                // { name: '河南', value: 40 },
                // { name: '青海', value: 70 },
                // { name: '河南', value: 30 },
                // { name: '黑龙江', value: 20 },
                // { name: '新疆', value: 20 },
                // { name: '云南', value: 20 },
                // { name: '甘肃', value: 20 },
            ],
        },
    ],
}
export const geoMapOptions3 = {
    toolbox: {
        show: true,
        feature: {
            myTool1: {
                show: true,
                title: "返回",
                icon: "path://M512 64L64 512l448 448 192-192L448 512l256-256z",
                onclick: function () {
                    // if (adcodeStack.length > 1) {
                    //     adcodeStack.pop();
                    //     mapNameStack.pop();
                    //     loadMap(
                    //         adcodeStack[adcodeStack.length - 1],
                    //         mapNameStack[mapNameStack.length - 1]
                    //     );
                    // }
                    alert(11)
                },
            },
        }
    },
    tooltip: {
        trigger: 'item',
        triggerOn: 'click',
        formatter: (params) => {
            console.log(params.name);

        }
    },
    geo: {
        map: 'chaoyang',
        roam: false,
        emphasis: {
            label: {
                show: false,
            },
        },
    },
    visualMap: {
        show: false,
        min: 0,
        max: 100,
        realtime: false,
        calculable: false,
        inRange: {
            color: ['#d2e0f5', '#71A9FF'],
        },
    },
    series: [
        {
            geoIndex: 0,
            name: '地域分布',
            type: 'map',
            coordinateSystem: 'geo',
            map: 'china',
            data: [
                { name: '北京', value: 100 },
                { name: '上海', value: 100 },
                { name: '广东', value: 100 },
                { name: '浙江', value: 90 },
                { name: '江西', value: 80 },
                { name: '山东', value: 70 },
                { name: '广西', value: 60 },
                { name: '河南', value: 50 },
                { name: '河南', value: 40 },
                { name: '青海', value: 70 },
                { name: '河南', value: 30 },
                { name: '黑龙江', value: 20 },
                { name: '新疆', value: 20 },
                { name: '云南', value: 20 },
                { name: '甘肃', value: 20 },
            ],
        },
    ],
}

export const geoMapOptions4 = {
      tooltip: {},
      animationDurationUpdate: 1500,
      animationEasingUpdate: 'quinticInOut',
      series: [
        {
          type: 'graph',
          layout: 'none',
          symbolSize: 50,
          roam: true,
          label: {
            show: true
          },
          edgeSymbol: ['circle', 'arrow'],
          edgeSymbolSize: [4, 10],
          edgeLabel: {
            fontSize: 20
          },
          data: [
            {
              name: 'Node 1',
              x: 300,
              y: 300
            },
            {
              name: 'Node 2',
              x: 800,
              y: 300
            },
            {
              name: 'Node 3',
              x: 550,
              y: 100
            },
            {
              name: 'Node 4',
              x: 550,
              y: 500
            }
          ],
          // links: [],
          links: [
            {
              source: 'Node 1',
              target: 'Node 3'
            },
            {
              source: 'Node 2',
              target: 'Node 3'
            },
            {
              source: 'Node 2',
              target: 'Node 4'
            },
            {
              source: 'Node 1',
              target: 'Node 4'
            }
          ],
          lineStyle: {
            opacity: 0.9,
            width: 2,
            curveness: 0
          }
        }
      ]
}